package com.yanqu.road.server.manger;

import com.yanqu.road.server.TempMgr;
import com.yanqu.road.utils.executor.GeneralTask;

import java.util.List;

public class CheckConfigVersionTask extends GeneralTask {
    private int channelId;
    private long serverId;
    private int serverType;
    private List<TempMgr> mgrList;
    public CheckConfigVersionTask(int channelId, long serverId, int serverType, List<TempMgr> mgrList) {
        this.channelId = channelId;
        this.serverId = serverId;
        this.serverType = serverType;
        this.mgrList = mgrList;
    }

    @Override
    public void doRun() {
        try {
            CheckConfigVersionMgr.checkConfigVersionUpgrade(channelId, serverId, serverType, mgrList);
        } catch (Exception e) {
            getLOGGER().error("CheckConfigVersionTask error", e);
        }
    }
}
